﻿CREATE PROCEDURE [dbo].[WorkflowTriggerInsert]
(@ComponentID UniqueIdentifier,
@WorkflowID UniqueIdentifier,
@TriggerType int,
@IsActive bit,
@ActivatedOn datetime,
@Span varchar(255),
@LastRunTime datetime,
@NextRunTime datetime) 
AS
begin
	insert into WorkflowTrigger (
		ComponentID,
		WorkflowID,
		TriggerType,
		IsActive,
		ActivatedOn,
		Span,
		LastRunTime,
		NextRunTime) 
	values (
		@ComponentID,
		@WorkflowID,
		@TriggerType,
		@IsActive,
		@ActivatedOn,
		@Span,
		@LastRunTime,
		@NextRunTime);
end